/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package utils;

import java.rmi.RemoteException;
import superuser.SuperuserGUI;

/**
 *
 * @author shaowei
 */
public class Staff {
    public static final int LOGIN_VALID = 1 ;
    public static final int LOGIN_FAILED = 0 ;
    
    private String email ;
    
    public String getEmail(){
        return this.email ;
    }
    
    public void setEmail(String email) {
        this.email = email ;
    }
    
    public static boolean login(String email, String password) throws RemoteException{
        
        return SuperuserGUI.server.authenticateSuperuser(email, password) ;
    }
    
    
}
